<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<script type="text/javascript">
			'use strict';
			// 我们可以用 for of 遍历数组
			// for of 拿到的是元素 ； for in 拿到的是小标索引
			let arr = [1,2,5,5,6];
			for(let x of arr){
				console.log(x);
			}
			
			// 用 for of 遍历Map 和 Set
			let map = new Map([
				['tom',100],
				['jack',90],
				['lucien',80]
			]);
			for(let x of map){
				console.log(x);
			}
			
			let set = new Set([4,6,2,5]);
			for(let x of set){
				console.log(x);
			}
			
			
		</script>
		
	</head>
	<body>
	</body>
</html>
